<template>
	<div class="card content-box" v-waterMark="{ text: 'tinyTimi Admin', textColor: 'rgba(180,180,180,0.6)' }">
		<span class="text">节流指令</span>
		<el-button v-throttle="throttleClick" type="primary"> 节流按钮（每隔1s后执行）</el-button>
	</div>
</template>

<script lang="ts" setup name="throttleDirect">
import { ElMessage } from "element-plus";

const throttleClick = () => {
	ElMessage.success("我是节流按钮触发的事件");
};
</script>